<footer class = "footer" ng-controller = "footerCtrl">
    <div ng-repeat = "menu in menus" ng-class = "{'col-xs-4':!menu.state,'col-xs-4 active':menu.state}" ng-click = "tiao(menu.href)"><i class="{{menu.style}}"></i><p>{{menu.name}}</p></div>
</footer>
<script>
    app.controller('footerCtrl', function($scope){
        $scope.menus = [{name: '个人中心',href:"{:url('index/oneself/index')}",state:false,style:'fa fa-user'},{name: '首页',href:"{:url('index/index/index')}",state:true,style:'fa fa-home'},{name: '更多',href:"{:url('index/more/index')}",state:false,style:'fa fa-th-large'}];
        $scope.tiao = function(href){
            window.location = href;
        }
    });
</script>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>